package com.qf.day09.work2;

public class Book {
    private String bookName;
    private double price;
    private  int pid;

    private String position;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Book() {
    }

    public Book(int pid) {
        this.pid = pid;
    }

    public Book(String bookName, double price, int pid, String position) {
        this.bookName = bookName;
        this.price = price;
        this.pid = pid;
        this.position = position;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookName='" + bookName + '\'' +
                ", price=" + price +
                ", pid=" + pid +
                ", position='" + position + '\'' +
                '}';
    }
}
